import request from '@/utils/request'
export function findAll(DTO) {
  return request({
    url: '/find/blogs/page',
    method: 'get',
    params: DTO
  })
}
export function deleteBatch(ids) {
  return request({
    url: '/blogs/delete/batch',
    method: 'post',
    data: ids
  })
}
export function deleteBlogs(id) {
  return request({
    url: '/blogs/delete',
    method: 'get',
    params: id
  })
}


export function addBlogs(blogs) {

  return request({
    url: '/blogs/add',
    method: 'get',
    params: blogs

  });
}

export function updateBlogs(blogs) {

  return request({
    url: '/blogs/update',
    method: 'post',
    data: blogs
  });
}
